#include "material.h"
#include <GL/glew.h>

void Material::setUpColors(){

	glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, diffuseAmbient._array);
	glMaterialfv(GL_FRONT, GL_SPECULAR, specular._array);
	glMaterialf(GL_FRONT, GL_SHININESS, shinyness);

}

void Material::resetColors(){

	float white[] = { diffAmbx, diffAmby, diffAmbz, diffAmbw };
	glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, white);

	float none[] = {specularx,speculary,specularz, diffAmbw };
	glMaterialfv(GL_FRONT, GL_SPECULAR, none);

	glMaterialf(GL_FRONT, GL_SHININESS, cShinyness);


}
